﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace TM.Test
{
    public class  Student
    {
        public string Name { get; set; }
        public int Id { get; set; }
    }

    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();

            schedulerControl1.SelectionChanged+=new EventHandler(schedulerControl1_SelectionChanged);

            var dict = new Dictionary<string, Student>()
                           {
                               {"001", new Student() {Id = 1, Name = "Huy"}},
                               {"002", new Student() {Id = 2, Name = "Hung"}}
                           };
            var str = Newtonsoft.Json.JsonConvert.SerializeObject(dict);


        }

        private void schedulerControl1_SelectionChanged(object sender, EventArgs e)
        {
            schedulerControl1.SelectedAppointments[0].Subject = "Phan Thanh Huy";
        }
    }
}
